home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr27 / v14n08.zip / MMDD.ZIP / DATETIME.BAT next >
DOS Batch File  |  1994-09-06  |  268b  |  12 lines

  1. @ECHO OFF
  2. REM DATETIME.BAT - get date and time into variables
  3. IF NOT '%3'=='' GOTO SecondTime
  4. ECHO @PROMPT %0 $d $t > DTTM$$$1.BAT
  5. COMMAND /E:512 /C DTTM$$$1.BAT > DTTM$$$2.BAT
  6. DTTM$$$2
  7. :SecondTime
  8. DEL DTTM$$$?.BAT
  9. SET DayOfWeek=%1
  10. SET Date=%2
  11. SET Time=%3
  12.